.class final Lcom/greystripe/sdk/bd;
.super Ljava/lang/Object;


# static fields
.field private static a:Lcom/greystripe/sdk/be;


# direct methods
.method static a()Lcom/greystripe/sdk/be;
    .locals 2

    const/4 v1, 0x0

    sget-object v0, Lcom/greystripe/sdk/bd;->a:Lcom/greystripe/sdk/be;

    if-nez v0, :cond_0

    new-instance v0, Lcom/greystripe/sdk/be;

    invoke-direct {v0, v1}, Lcom/greystripe/sdk/be;-><init>(B)V

    sput-object v0, Lcom/greystripe/sdk/bd;->a:Lcom/greystripe/sdk/be;

    :cond_0
    new-instance v0, Lcom/greystripe/sdk/be;

    invoke-direct {v0, v1}, Lcom/greystripe/sdk/be;-><init>(B)V

    return-object v0
.end method

.method private static varargs a(ILjava/lang/String;[Ljava/lang/Object;)V
    .locals 4

    if-eqz p1, :cond_1

    array-length v0, p2

    if-lez v0, :cond_0

    :try_start_0
    invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object p1

    :cond_0
    :goto_0
    const-string v0, "Greystripe"

    invoke-static {p0, v0, p1}, Landroid/util/Log;->println(ILjava/lang/String;Ljava/lang/String;)I

    :cond_1
    return-void

    :catch_0
    move-exception v0

    const-string v0, "Error formatting log message (level=%d): %s"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    aput-object p1, v1, v2

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    const/4 p0, 0x6

    goto :goto_0
.end method

.method static varargs a(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 2

    const/4 v1, 0x2

    invoke-static {}, Lcom/greystripe/sdk/bd;->c()I

    move-result v0

    if-gt v0, v1, :cond_0

    invoke-static {v1, p0, p1}, Lcom/greystripe/sdk/bd;->a(ILjava/lang/String;[Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method static varargs b(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 2

    const/4 v1, 0x3

    invoke-static {}, Lcom/greystripe/sdk/bd;->c()I

    move-result v0

    if-gt v0, v1, :cond_0

    invoke-static {v1, p0, p1}, Lcom/greystripe/sdk/bd;->a(ILjava/lang/String;[Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method static b()Z
    .locals 2

    const/4 v0, 0x3

    invoke-static {}, Lcom/greystripe/sdk/bd;->c()I

    move-result v1

    if-lt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static c()I
    .locals 2

    const/4 v0, 0x4

    :try_start_0
    sget-object v1, Lcom/greystripe/sdk/bk;->LOG_LEVEL:Lcom/greystripe/sdk/bk;

    invoke-static {v1}, Lcom/greystripe/sdk/bj;->a(Lcom/greystripe/sdk/bk;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    sget-object v1, Lcom/greystripe/sdk/bk;->LOG_LEVEL:Lcom/greystripe/sdk/bk;

    invoke-static {v1}, Lcom/greystripe/sdk/bj;->a(Lcom/greystripe/sdk/bk;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    :cond_0
    :goto_0
    return v0

    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method static varargs c(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 2

    const/4 v1, 0x4

    invoke-static {}, Lcom/greystripe/sdk/bd;->c()I

    move-result v0

    if-gt v0, v1, :cond_0

    invoke-static {v1, p0, p1}, Lcom/greystripe/sdk/bd;->a(ILjava/lang/String;[Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method static varargs d(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 2

    const/4 v1, 0x5

    invoke-static {}, Lcom/greystripe/sdk/bd;->c()I

    move-result v0

    if-gt v0, v1, :cond_0

    invoke-static {v1, p0, p1}, Lcom/greystripe/sdk/bd;->a(ILjava/lang/String;[Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method static varargs e(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 2
    .annotation runtime Landroid/webkit/JavascriptInterface;
    .end annotation

    const/4 v1, 0x6

    invoke-static {}, Lcom/greystripe/sdk/bd;->c()I

    move-result v0

    if-gt v0, v1, :cond_0

    invoke-static {v1, p0, p1}, Lcom/greystripe/sdk/bd;->a(ILjava/lang/String;[Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method static varargs f(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 2

    const/4 v1, 0x7

    invoke-static {}, Lcom/greystripe/sdk/bd;->c()I

    move-result v0

    if-gt v0, v1, :cond_0

    invoke-static {v1, p0, p1}, Lcom/greystripe/sdk/bd;->a(ILjava/lang/String;[Ljava/lang/Object;)V

    :cond_0
    return-void
.end method
